home *** CD-ROM | disk | FTP | other *** search
- CRAP MOD PLAYER (aka JMP - Jorian's Mod Player)
- -----------------------------------------------
-
- This MOD player is CRAP. However it was my first attempt at
- writing a player and was coded in pure C. Since then I have
- written better players with more features and more optimised
- code... but I'm not releasing them cos they are MINE.
-
- The code was written for Borland C++ 3.1 but should compile
- on any ANSI compiler. The large model is necessary as I
- dont believe in "far" types (sign of segment memory which I
- dislike intently). I dont quite remember how the structure
- to play a MOD goes (I wrote this code about 1.5 years ago)
- but heres a rough idea.
-
- modload("c:\\songs\\mods\\blah.mod");
- modinit(16000);
- modplay();
- while (modpoll()) {
- /* do anything here... but modpoll must */
- /* be called at least 10 times a second */
- }
- modstop();
-
- I have seen lots of code on the net for MOD players but have
- yet to find one I could understand. The highly optimised
- assembler is a burden to read. This C code was originally
- written so I could try out some ideas. I am releasing the
- code in the hope that others can gain from my blunders.
-
- Words of warning. This player does not work brilliantly and
- emulates very few of the protracker commands. I do not have
- volume slide, pitch bend etc. However it contains enough
- ideas for budding writers who need a headstart. Also the
- frequencies have been tuned by ear (of which mine is tin)
- so dont be surprised to find the song playing too fast and
- out of tune.
-
- I dont want money, fame or recognition for this code. I really
- dont deserve it. However feel free to give comments suggestions
- etc to me via email. If you have any problems then mail me but
- I do have a life to live so dont bug me continuously ;)
-
- h9304891@iwaki.anu.edu.au
-
- If you dont like the code, dont use it. If you think C sucks,
- dont read it. If you feel the MOD player is not worthy of your
- hard disk space, delete it. But DONT flame me for releasing
- cruddy code.
-
- Nathan Hand
- Australian National University
- 1994
-